/**
 * 该模块是UI路由, 用于管理UI路由, 以后配置新页面, 在这里配置路由即可
 */
let {Router} = require("express")
let router = new Router()
let {resolve} = require("path")

// UI路由--登录
router.get("/login", (req, resp) => {
    let filePath = resolve(__dirname, "../public/login.html")
    resp.sendfile(filePath)
})
// UI路由--注册
router.get("/register", (req, resp) => {
    let filePath = resolve(__dirname, "../public/register.html")
    resp.sendfile(filePath)
})

module.exports = router